/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.io.IOException;
/*     */ import java.util.ArrayList;
/*     */ import java.util.List;
/*     */ import java.util.Locale;
/*     */ import java.util.regex.Matcher;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.gui.GuiScreen;
/*     */ import net.minecraft.client.renderer.BufferBuilder;
/*     */ import net.minecraft.client.renderer.GlStateManager;
/*     */ import net.minecraft.client.renderer.Tessellator;
/*     */ import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
/*     */ import net.minecraft.util.ChatAllowedCharacters;
/*     */ import net.minecraft.util.ResourceLocation;
/*     */ import org.lwjgl.input.Mouse;
/*     */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class fm
/*     */   extends pi
/*     */ {
/*     */   private bh aa;
/*     */   private bh ta;
/*     */   private int k;
/*     */   public String o;
/*     */   private yj y;
/*     */   public boolean h;
/*     */   public boolean u;
/*     */   public boolean j;
/*     */   public boolean c;
/*     */   public boolean r;
/*     */   public boolean f;
/*     */   private int s;
/*     */   private int m;
/*     */   private int l;
/*     */   private int t;
/*     */   private boolean d;
/*     */   private static final char z = '￿';
/*     */   public List<eos/moe/dragoncore/al> i;
/*     */   public List<eos/moe/dragoncore/al> w;
/*     */   public boolean q;
/*     */   private long g;
/*     */   
/*     */   public fm(vh vh1, ConfigurationSection configurationSection) {
/*  52 */     super(vh1, configurationSection);
/*     */     
/*  54 */     this.o = null;
/*  55 */     this.y = null;
/*  56 */     this.h = false;
/*  57 */     this.u = true;
/*  58 */     this.j = true;
/*  59 */     this.c = false;
/*  60 */     this.r = false;
/*  61 */     this.f = false;
/*  62 */     this.t = 0;
/*  63 */     this.d = false;
/*  64 */     this.i = new ArrayList<>();
/*  65 */     this.w = new ArrayList<>();
/*  66 */     this.q = false;
/*  67 */     this.g = 0L;
/*     */     
/*  69 */     this.q = true;
/*  70 */     this.h = createMoLangParser("focused", Boolean.valueOf(false)).z();
/*  71 */     this.ta = createMoLangParserString("font", "");
/*  72 */     this.aa = createMoLangParser("drawBackground", Boolean.valueOf(true));
/*  73 */     setText(createMoLangParserString("text", "").z());
/*  74 */     this.q = false;
/*     */   }
/*     */ 
/*     */   
/*     */   public void render(int i, int j) {
/*  79 */     if (!this.j) {
/*     */       return;
/*     */     }
/*  82 */     double d1 = 0.0D;
/*  83 */     double d2 = 0.0D;
/*  84 */     double d3 = this.p.z();
/*  85 */     double d4 = this.n.z();
/*  86 */     i = (int)((i - getXPos() + this.c) / this.ia.z());
/*  87 */     j = (int)((j - getYPos() + this.r) / this.ia.z());
/*     */     
/*  89 */     if (this.aa.z()) {
/*  90 */       v(d1 - 1.0D, d2 - 1.0D, d1 + d3 + 1.0D, d2 + d4 + 1.0D, -6250336);
/*  91 */       v(d1, d2, d1 + d3, d2 + d4, -16777216);
/*     */     } 
/*  93 */     this.y.q = (int)(d4 / this.y.i);
/*  94 */     if (this.c) {
/*  95 */       this.c = Mouse.isButtonDown(0);
/*  96 */       int i1 = v(i, j);
/*  97 */       if (i1 != this.l) {
/*  98 */         if (this.r) {
/*  99 */           int i2 = this.l;
/* 100 */           this.m = i2;
/* 101 */           this.s = i2;
/* 102 */           this.r = false;
/*     */         } 
/* 104 */         v(i1, true);
/*     */       } 
/* 106 */     } else if (this.r) {
/* 107 */       this.r = false;
/*     */     } 
/* 109 */     if (this.f) {
/* 110 */       this.f = Mouse.isButtonDown(0);
/* 111 */       int i1 = this.y.g - this.y.q;
/* 112 */       this.t = Math.min(Math.max((int)((1.0F * i1 * j) / d4), 0), i1);
/*     */     } 
/* 114 */     int k = 0;
/* 115 */     int m = 0;
/* 116 */     if (this.m - this.s == 1 || (this.s == this.m && this.s < this.o.length())) {
/* 117 */       char c = this.o.charAt(this.s);
/* 118 */       int i1 = 0;
/* 119 */       if (c == '{') {
/* 120 */         i1 = z(this.o.substring(this.s), '{', '}');
/* 121 */       } else if (c == '[') {
/* 122 */         i1 = z(this.o.substring(this.s), '[', ']');
/* 123 */       } else if (c == '(') {
/* 124 */         i1 = z(this.o.substring(this.s), '(', ')');
/* 125 */       } else if (c == '}') {
/* 126 */         i1 = v(this.o.substring(0, this.s + 1), '{', '}');
/* 127 */       } else if (c == ']') {
/* 128 */         i1 = v(this.o.substring(0, this.s + 1), '[', ']');
/* 129 */       } else if (c == ')') {
/* 130 */         i1 = v(this.o.substring(0, this.s + 1), '(', ')');
/*     */       } 
/* 132 */       if (i1 != 0) {
/* 133 */         k = this.s;
/* 134 */         m = this.s + i1;
/*     */       } 
/*     */     } 
/* 137 */     List<yj.eos/moe/dragoncore/hi> list = new ArrayList<>(this.y.z);
/* 138 */     String str1 = null;
/* 139 */     if (this.s != this.m) {
/* 140 */       Matcher matcher = this.y.s.matcher(this.o);
/* 141 */       while (matcher.find()) {
/* 142 */         if (matcher.start() == this.s && matcher.end() == this.m) {
/* 143 */           str1 = this.o.substring(this.s, this.m);
/*     */         }
/*     */       } 
/*     */     } 
/* 147 */     String str2 = this.ta.z(); int n;
/* 148 */     for (n = 0; n < list.size(); n++) {
/* 149 */       yj.eos/moe/dragoncore/hi eos/moe/dragoncore/hi = list.get(n);
/* 150 */       String str = eos/moe/dragoncore/hi.i;
/* 151 */       int i1 = str.length();
/* 152 */       if (k != m) {
/* 153 */         if (k >= eos/moe/dragoncore/hi.w && k < eos/moe/dragoncore/hi.q) {
/* 154 */           double d5 = af.v(str.substring(0, k - eos/moe/dragoncore/hi.w), str2, false);
/* 155 */           double d6 = (af.v(str.substring(0, k - eos/moe/dragoncore/hi.w + 1), str2, false) + 1);
/* 156 */           double d7 = (int)(d2 + 1.0D + ((n - this.t) * this.y.i));
/* 157 */           v(d1 + 1.0D + d5, d7, d1 + 1.0D + d6, d7 + this.y.i + 1.0D, -1728001024);
/*     */         } 
/* 159 */         if (m >= eos/moe/dragoncore/hi.w && m < eos/moe/dragoncore/hi.q) {
/* 160 */           int i2 = af.v(str.substring(0, m - eos/moe/dragoncore/hi.w), str2, false);
/* 161 */           int i3 = af.v(str.substring(0, m - eos/moe/dragoncore/hi.w + 1), str2, false) + 1;
/* 162 */           double d = d2 + 1.0D + ((n - this.t) * this.y.i);
/* 163 */           v(d1 + 1.0D + i2, d, d1 + 1.0D + i3, d + this.y.i + 1.0D, -1728001024);
/*     */         } 
/*     */       } 
/* 166 */       if (n >= this.t && n < this.t + this.y.q) {
/* 167 */         if (str1 != null) {
/* 168 */           Matcher matcher = this.y.s.matcher(str);
/* 169 */           while (matcher.find()) {
/* 170 */             if (str.substring(matcher.start(), matcher.end()).equals(str1)) {
/* 171 */               int i2 = af.v(str.substring(0, matcher.start()), str2, false);
/* 172 */               int i3 = af.v(str.substring(0, matcher.end()), str2, false) + 1;
/* 173 */               double d5 = d2 + 1.0D + ((n - this.t) * this.y.i);
/* 174 */               v(d1 + 1.0D + i2, d5, d1 + 1.0D + i3, d5 + this.y.i + 1.0D, -1728033792);
/*     */             } 
/*     */           } 
/*     */         } 
/* 178 */         if (this.s != this.m && this.m > eos/moe/dragoncore/hi.w && this.s <= eos/moe/dragoncore/hi.q && this.s < eos/moe/dragoncore/hi.q) {
/* 179 */           int i2 = af.v(str.substring(0, Math.max(this.s - eos/moe/dragoncore/hi.w, 0)), str2, false);
/* 180 */           int i3 = af.v(str.substring(0, Math.min(this.m - eos/moe/dragoncore/hi.w, i1)), str2, false) + 1;
/* 181 */           double d5 = d2 + 1.0D + ((n - this.t) * this.y.i);
/* 182 */           v(d1 + 1.0D + i2, d5, d1 + 1.0D + i3, d5 + this.y.i + 1.0D, -1728052993);
/*     */         } 
/* 184 */         double d = d2 + ((n - this.t) * this.y.i) + 1.0D;
/* 185 */         af.v(eos/moe/dragoncore/hi.v(), str2, d1 + 1.0D, d + 1.0D, false, true, false, -2039584);
/* 186 */         if (this.h && isEnabled() && this.k / 6 % 2 == 0 && this.l >= eos/moe/dragoncore/hi.w && this.l < eos/moe/dragoncore/hi.q) {
/* 187 */           double d5 = d1 + af.v(str.substring(0, this.l - eos/moe/dragoncore/hi.w), str2, false);
/* 188 */           v(d5 + 1.0D, d, d5 + 2.0D, d + 1.0D + this.y.i, -3092272);
/*     */         } 
/*     */       } 
/*     */     } 
/* 192 */     if (hasVerticalScrollbar()) {
/*     */       
/* 194 */       (Minecraft.func_71410_x()).field_71446_o.func_110577_a(new ResourceLocation("minecraft", "aa.png"));
/* 195 */       n = Math.max((int)((1.0F * this.y.q / this.y.g) * d4), 2);
/* 196 */       double d5 = d1 + d3 - 6.0D;
/* 197 */       double d6 = d2 + (1.0F * this.t / this.y.g) * (d4 - 4.0D) + 1.0D;
/* 198 */       v(d5, d6, d5 + 5.0D, d6 + n, -2039584);
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean keyTyped(char c, int i) throws IOException {
/* 262 */     keyTyped1(c, i);
/*     */     
/* 264 */     return this.h;
/*     */   }
/*     */   
/*     */   public void keyTyped1(char c, int i) {
/* 268 */     if (!this.h) {
/*     */       return;
/*     */     }
/* 271 */     if (GuiScreen.func_175278_g(i)) {
/* 272 */       int j = 0;
/* 273 */       this.l = j;
/* 274 */       this.s = j;
/* 275 */       this.m = this.o.length();
/*     */       return;
/*     */     } 
/* 278 */     if (!isEnabled()) {
/*     */       return;
/*     */     }
/* 281 */     String str = this.o;
/* 282 */     if (i == 203) {
/* 283 */       int j = 1;
/* 284 */       if (GuiScreen.func_146271_m()) {
/* 285 */         Matcher matcher = this.y.s.matcher(this.o.substring(0, this.l));
/* 286 */         while (matcher.find()) {
/* 287 */           if (matcher.start() == matcher.end()) {
/*     */             continue;
/*     */           }
/* 290 */           j = this.l - matcher.start();
/*     */         } 
/*     */       } 
/* 293 */       v(this.l - j, GuiScreen.func_146272_n());
/*     */       return;
/*     */     } 
/* 296 */     if (i == 205) {
/* 297 */       int j = 1;
/* 298 */       if (GuiScreen.func_146271_m()) {
/* 299 */         Matcher matcher = this.y.s.matcher(this.o.substring(this.l));
/* 300 */         if ((matcher.find() && matcher.start() > 0) || matcher.find()) {
/* 301 */           j = matcher.start();
/*     */         }
/*     */       } 
/* 304 */       v(this.l + j, GuiScreen.func_146272_n());
/*     */       return;
/*     */     } 
/* 307 */     if (i == 200) {
/* 308 */       v(z(), GuiScreen.func_146272_n());
/*     */       return;
/*     */     } 
/* 311 */     if (i == 208) {
/* 312 */       v(v(), GuiScreen.func_146272_n());
/*     */       return;
/*     */     } 
/* 315 */     if (i == 211) {
/* 316 */       String str1 = getSelectionAfterText();
/* 317 */       if (!str1.isEmpty() && this.s == this.m) {
/* 318 */         str1 = str1.substring(1);
/*     */       }
/* 320 */       setText(getSelectionBeforeText() + str1);
/* 321 */       int j = this.s;
/* 322 */       this.l = j;
/* 323 */       this.m = j;
/*     */       return;
/*     */     } 
/* 326 */     if (i == 14) {
/* 327 */       String str1 = getSelectionBeforeText();
/* 328 */       if (this.s > 0 && this.s == this.m) {
/* 329 */         str1 = str1.substring(0, str1.length() - 1);
/* 330 */         this.s--;
/*     */       } 
/* 332 */       setText(str1 + getSelectionAfterText());
/* 333 */       int j = this.s;
/* 334 */       this.l = j;
/* 335 */       this.m = j;
/*     */       return;
/*     */     } 
/* 338 */     if (GuiScreen.func_175277_d(i)) {
/* 339 */       if (this.s != this.m) {
/* 340 */         jj.v(this.o.substring(this.s, this.m));
/* 341 */         String str1 = getSelectionBeforeText();
/* 342 */         setText(str1 + getSelectionAfterText());
/* 343 */         int j = str1.length();
/* 344 */         this.l = j;
/* 345 */         this.s = j;
/* 346 */         this.m = j;
/*     */       } 
/*     */       return;
/*     */     } 
/* 350 */     if (GuiScreen.func_175280_f(i)) {
/* 351 */       if (this.s != this.m) {
/* 352 */         jj.v(this.o.substring(this.s, this.m));
/*     */       }
/*     */       return;
/*     */     } 
/* 356 */     if (GuiScreen.func_175279_e(i)) {
/* 357 */       v(jj.z());
/*     */       return;
/*     */     } 
/* 360 */     if (i == 44 && GuiScreen.func_146271_m()) {
/* 361 */       if (this.i.isEmpty()) {
/*     */         return;
/*     */       }
/* 364 */       this.q = true;
/* 365 */       this.w.add(new eos/moe/dragoncore/al(this.o, this.l));
/* 366 */       eos/moe/dragoncore/al eos/moe/dragoncore/al = this.i.remove(this.i.size() - 1);
/* 367 */       setText(eos/moe/dragoncore/al.q);
/* 368 */       int j = eos/moe/dragoncore/al.g;
/* 369 */       this.l = j;
/* 370 */       this.s = j;
/* 371 */       this.m = j;
/* 372 */       this.q = false;
/*     */     } else {
/* 374 */       if (i != 21 || !GuiScreen.func_146271_m()) {
/* 375 */         if (i == 15) {
/* 376 */           v("    ");
/*     */         }
/* 378 */         if (i == 28) {
/* 379 */           v('\n' + v());
/*     */         }
/* 381 */         if (ChatAllowedCharacters.func_71566_a(c)) {
/* 382 */           v(Character.toString(c));
/*     */         }
/*     */         return;
/*     */       } 
/* 386 */       if (this.w.isEmpty()) {
/*     */         return;
/*     */       }
/* 389 */       this.q = true;
/* 390 */       this.i.add(new eos/moe/dragoncore/al(this.o, this.l));
/* 391 */       eos/moe/dragoncore/al eos/moe/dragoncore/al = this.w.remove(this.w.size() - 1);
/* 392 */       setText(eos/moe/dragoncore/al.q);
/* 393 */       int j = eos/moe/dragoncore/al.g;
/* 394 */       this.l = j;
/* 395 */       this.s = j;
/* 396 */       this.m = j;
/* 397 */       this.q = false;
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public String getSelectionBeforeText() {
/* 483 */     if (this.s == 0) {
/* 484 */       return "";
/*     */     }
/* 486 */     return this.o.substring(0, this.s);
/*     */   }
/*     */   
/*     */   public String getSelectionAfterText() {
/* 490 */     return this.o.substring(this.m);
/*     */   }
/*     */ 
/*     */   
/*     */   public void runClick(int i, int j, int k) {
/* 495 */     mouseClicked(i, j, k);
/* 496 */     super.runClick(i, j, k);
/*     */   }
/*     */ 
/*     */   
/*     */   public void runUnClick(int i, int j, int k) {
/* 501 */     this.h = false;
/* 502 */     super.runUnClick(i, j, k);
/*     */   }
/*     */   
/*     */   public void mouseClicked(int i, int j, int k) {
/* 506 */     double d1 = 0.0D;
/* 507 */     double d2 = 0.0D;
/* 508 */     double d3 = this.p.z();
/* 509 */     double d4 = this.n.z();
/* 510 */     i = (int)((i - getXPos() - this.c) / this.ia.z());
/* 511 */     j = (int)((j - getYPos() - this.r) / this.ia.z());
/*     */     
/* 513 */     this.h = true;
/* 514 */     int m = v(i, j);
/* 515 */     this.l = m;
/* 516 */     this.m = m;
/* 517 */     this.s = m;
/* 518 */     this.c = (k == 0);
/* 519 */     this.r = false;
/* 520 */     long l = System.currentTimeMillis();
/* 521 */     if (this.c && (this.y.g * this.y.i) > d4 && i > d1 + d3 - 8.0D) {
/* 522 */       this.c = false;
/* 523 */       this.f = true;
/* 524 */     } else if (l - this.g < 500L) {
/* 525 */       this.r = true;
/* 526 */       Matcher matcher = this.y.s.matcher(this.o);
/* 527 */       while (matcher.find()) {
/* 528 */         if (this.l > matcher.start() && this.l < matcher.end()) {
/* 529 */           this.s = matcher.start();
/* 530 */           this.m = matcher.end();
/*     */           break;
/*     */         } 
/*     */       } 
/*     */     } 
/* 535 */     this.g = l;
/*     */   }
/*     */   
/*     */   public void updateScreen() {
/* 539 */     double d = this.n.z();
/*     */     
/* 541 */     this.k++;
/* 542 */     int i = Mouse.getDWheel();
/* 543 */     if (i != 0) {
/* 544 */       this.t += (i > 0) ? -1 : 1;
/* 545 */       this.t = (int)Math.max(Math.min(this.t, this.y.g - d / this.y.i), 0.0D);
/*     */     } 
/*     */   }
/*     */   
/*     */   public void setText(String str) {
/* 550 */     double d1 = this.p.z();
/* 551 */     double d2 = this.n.z();
/*     */     
/* 553 */     str = str.replace("\r", "");
/* 554 */     if (this.o != null && this.o.equals(str)) {
/*     */       return;
/*     */     }
/*     */ 
/*     */ 
/*     */ 
/*     */     
/* 561 */     if (!this.q) {
/* 562 */       this.i.add(new eos/moe/dragoncore/al(this.o, this.l));
/* 563 */       this.w.clear();
/*     */     } 
/* 565 */     this.o = str;
/* 566 */     (this.y = new yj(str)).v(this.ta.z(), d1, d2);
/* 567 */     if (this.d) {
/* 568 */       this.y.v();
/*     */     }
/* 570 */     if (this.t > this.y.g - this.y.q) {
/* 571 */       this.t = Math.max(0, this.y.g - this.y.q);
/*     */     }
/*     */   }
/*     */   
/*     */   public String getText() {
/* 576 */     return this.o;
/*     */   }
/*     */   
/*     */   public boolean isEnabled() {
/* 580 */     return (this.u && this.j);
/*     */   }
/*     */   
/*     */   public boolean hasVerticalScrollbar() {
/* 584 */     return (this.y.q < this.y.g);
/*     */   }
/*     */   
/*     */   public void enableCodeHighlighting() {
/* 588 */     this.d = true;
/* 589 */     this.y.v();
/*     */   }
/*     */ 
/*     */   
/*     */   public boolean isActive() {
/* 594 */     return this.h;
/*     */   }
/*     */ 
/*     */   
/*     */   public static void v(double a, double d1, double d2, double d3, int i) {
/* 599 */     if (a < d2) {
/* 600 */       double d = a;
/* 601 */       a = d2;
/* 602 */       d2 = d;
/*     */     } 
/*     */     
/* 605 */     if (d1 < d3) {
/* 606 */       double d = d1;
/* 607 */       d1 = d3;
/* 608 */       d3 = d;
/*     */     } 
/*     */     
/* 611 */     float f1 = (i >> 24 & 0xFF) / 255.0F;
/* 612 */     float f2 = (i >> 16 & 0xFF) / 255.0F;
/* 613 */     float f3 = (i >> 8 & 0xFF) / 255.0F;
/* 614 */     float f4 = (i & 0xFF) / 255.0F;
/* 615 */     Tessellator tessellator = Tessellator.func_178181_a();
/* 616 */     BufferBuilder bufferBuilder = tessellator.func_178180_c();
/* 617 */     GlStateManager.func_179147_l();
/* 618 */     GlStateManager.func_179090_x();
/* 619 */     GlStateManager.func_187428_a(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
/* 620 */     GlStateManager.func_179131_c(f2, f3, f4, f1);
/* 621 */     bufferBuilder.func_181668_a(7, DefaultVertexFormats.field_181705_e);
/* 622 */     bufferBuilder.func_181662_b(a, d3, 0.0D).func_181675_d();
/* 623 */     bufferBuilder.func_181662_b(d2, d3, 0.0D).func_181675_d();
/* 624 */     bufferBuilder.func_181662_b(d2, d1, 0.0D).func_181675_d();
/* 625 */     bufferBuilder.func_181662_b(a, d1, 0.0D).func_181675_d();
/* 626 */     tessellator.func_78381_a();
/* 627 */     GlStateManager.func_179098_w();
/* 628 */     GlStateManager.func_179084_k();
/*     */   }
/*     */   
/*     */   static class eos/moe/dragoncore/al {
/*     */     public String q;
/*     */     public int g;
/*     */     
/*     */     public eos/moe/dragoncore/al(String str, int i) {
/* 636 */       this.q = str;
/* 637 */       this.g = i;
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public Object getValue(String str) {
/* 644 */     switch (str.toLowerCase(Locale.ROOT)) {
/*     */       case "type_":
/*     */       case "type":
/* 647 */         return "textbox";
/*     */       case "drawbackground":
/* 649 */         return this.aa.z() ? "1" : "0";
/*     */       case "text_":
/*     */       case "text":
/* 652 */         return this.o;
/*     */       case "focused_":
/*     */       case "focused":
/* 655 */         return isActive() ? "1" : "0";
/*     */       case "drawbackground_":
/* 657 */         return this.aa.h();
/*     */       
/*     */       case "font":
/* 660 */         return this.ta.z();
/*     */       case "font_":
/* 662 */         return this.ta.h();
/*     */     } 
/* 664 */     return super.getValue(str);
/*     */   }
/*     */ 
/*     */   
/*     */   public void setValue(String str, Object object) {
/* 669 */     switch (str.toLowerCase(Locale.ROOT)) {
/*     */       case "drawbackground":
/* 671 */         this.aa = toMolangParser(object);
/*     */         return;
/*     */       case "text":
/* 674 */         Minecraft.func_71410_x().func_152344_a(() -> setText(toMolangParser((String)object).z()));
/*     */         return;
/*     */ 
/*     */ 
/*     */       
/*     */       case "focused":
/* 680 */         this.h = toMolangParser(object).z();
/*     */         return;
/*     */       case "font":
/* 683 */         this.ta = toMolangParser((String)object);
/*     */         return;
/*     */     } 
/* 686 */     super.setValue(str, object);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\fm.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */